package cpgears {
	import asunit.framework.TestCase;
	
	/**
	 * ...
	 * @author Whyves
	 */
	public class WidgetModeTest extends TestCase{
		
		public function WidgetModeTest(testMethod:String = null) {
			super(testMethod);
		}

		public function testValuePropterty():void {
			assertEquals("Edit", WidgetMode.EDIT.value);
		}

		public function testGetModeFromName():void {
			assertEquals(WidgetMode.EDIT, WidgetMode.getModeFromName("Edit"));
			assertEquals(WidgetMode.PREVIEW, WidgetMode.getModeFromName("Preview"));
			assertEquals(WidgetMode.STAGE, WidgetMode.getModeFromName("Stage"));
		}
	}
}